package file;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;

public class input {
    public static void main(String[] args) throws IOException {
        FileOutputStream fileOutputStream = new FileOutputStream("E:/启迪/1/1.txt");
        OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream, "GBK");
        PrintWriter printWriter = new PrintWriter(outputStreamWriter);

        printWriter.println("哈哈");
        printWriter.println("学习");
        printWriter.println("我身高1.5");
        printWriter.println("会做烧饼");
        printWriter.println("喝药贼快");
        printWriter.flush();
        printWriter.close();
    }
}
